package cn.dxh.stagefinal.service.impl;

import cn.dxh.stagefinal.bean.Role;
import cn.dxh.stagefinal.dao.RoleDao;
import cn.dxh.stagefinal.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * IntelliJ IDEA -> stagefinal
 * 2019/12/10 19:33
 *
 * @author zmyao
 * 别看，我是渣渣。
 */
@Service
public class RoleServiceImpl implements RoleService
{
    @Autowired
    private RoleDao roleDao;
    @Override
    public List<Role> findRoles() {
        return roleDao.findRoles();
    }
}
